package com.isoft.uaaservice.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("TMIM_SYSTEM.SYS_USER")
public class SysUser implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private String email;
    private String phone;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createdt;
    private String photourl;
    private int islock;

    public static final int STATE_LOCK = 1 ;
    public static final int STATE_NON_LOCK = 0 ;

    /*不被实例化的列*/
    /*@TableField(exist = false)
    private Integer roleid;
    @TableField(exist = false)
    private String rolename;*/
}
